#include "RBtree.hpp"
#include <time.h>
void test1()
{
    srand(time(0));
    //int a[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
    //int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
    //int x = rand();
    cc::RBtree<int, int> s;
    int n = 50000;
    for (int i = 0; i < n; i++)
    {
        int x = rand();
        //cout << x << endl;
        s.insert(make_pair(x, i));
    }
    s.print();
}
int main()
{
    test1();
    return 0;
}